(define-module (emacs org-gcal)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (gnu packages emacs)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (gnu packages mail)
  #:use-module (guix download))


(define-public emacs-request-deferred
(package
  (name "emacs-request-deferred")
  (version "20160419.2305")
  (source
    (origin
      (method url-fetch)
      (uri (string-append
             "https://melpa.org/packages/request-deferred-"
             version
             ".el"))
      (sha256
        (base32
          "1i34lxv91m786pfwkyb3jajjjbnky8pi7jzv1s5jy30v8ljphfai"))))
  (build-system emacs-build-system)
  (propagated-inputs
    `(("emacs-deferred" ,emacs-deferred)
      ("emacs-request" ,emacs-request)))
  (home-page "unspecified")
  (synopsis "Wrap request.el by deferred")
  (description "")
  (license #f)))


(define-public emacs-org-gcal
(package
  (name "emacs-org-gcal")
  (version "20181004.748")
  (source
    (origin
      (method url-fetch)
      (uri (string-append
             "https://melpa.org/packages/org-gcal-"
             version
             ".el"))
      (sha256
        (base32
          "040j6ca8m2li576gsl63r6laiywdgbip2iyxws2zxh3hbzqdjgxf"))))
  (build-system emacs-build-system)
  (propagated-inputs
    `(("emacs-request-deferred"
       ,emacs-request-deferred)
      ("emacs-alert" ,emacs-alert)
      ("emacs-org" ,emacs-org)))
  (home-page "https://github.com/kidd/org-gcal.el")
  (synopsis "Org sync with Google Calendar")
  (description
    "Put the org-gcal.el to your
load-path.
Add to .emacs:
(require 'org-gcal)
")
  (license #f)))
